export interface QueryInt {
	id: number
	authority: string
}

interface ListInt {
	name: string
	roleId: number
	viewRole?: string
	roleList?: ListInt[]
}

export class InitData {
	id: number
	authorityIds: number[]
	list: ListInt[] = []
	treeRef: any

	constructor(id: number, authorityIds: string) {
		this.id = id
		this.authorityIds = authorityIds.split(',').map((v) => +v)
	}
}
